package cn.itrip.auth.service;

import cn.itrip.beans.pojo.ItripUser;

/**
 * @ClassName UserService
 * @Description TODO
 * @Author yaozhaobao
 * @Date 2020/12/11 15:46
 * @Version 1.0
 **/
public interface UserService {

    /**
     * 查看用户名是否已经注册并激活
     * @param userCode
     * @return
     */
    public boolean checkUserByUserCode(String userCode) throws Exception;

    /**
     * 根据手机号码添加用户
     * @param itripUser
     * @return
     */
    public boolean itripxAddUserByPhone(ItripUser itripUser) throws Exception;


    /**
     *根据userCode获取用户信息
     * @param userCode
     * @return
     */
    public ItripUser getUserByUserCode(String userCode) throws Exception;



    public boolean itripxupdateUser(ItripUser itripUser) throws Exception;




    /**
     * 验证是否登录
     * @param userCode
     * @param password
     * @return
     */
    public ItripUser checkLogin(String userCode,String password) throws Exception;



}
